package com.rgs.base.core.page;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;
/**
 * @author Ren Gaoshuai
 * @ClassName IPageRequestModel
 * @Description 统一的分页请求模型接口
 * @create 2022-01-18 9:22
 **/
/**
 * @author wxpjf
 * @date 2021/3/13 16:39
 */
@Data
@ApiModel("通用的分页返回响应")
public class PageResponseModel<T> implements IPageResponseModel<T> {
    /**
     * 当前页号
     */
    @ApiModelProperty(value = "当前页号",required = true)
    private Integer page;

    /**
     * 数据
     */
    @ApiModelProperty(value = "数据",required = true)
    private List<T> dataList;

    /**
     * 数据总数
     */
    @ApiModelProperty(value = "数据总数",required = true)
    private Long count;

    /**
     * 总页数
     */
    @ApiModelProperty(value = "总页数",required = true)
    private Integer totalPage;

    /**
     * 汇总数据
     */
    @ApiModelProperty(value = "汇总数据")
    private T totalData;

}
